package com.baseframe.system.controller;


import com.baseframe.system.service.BaseRoleService;
import com.baseframe.tool.result.R;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/back/role")
@AllArgsConstructor
public class BackBaseRoleController {


    private BaseRoleService baseRoleService;


    /**
     * 获取角色列表
     * @return
     */
    @GetMapping("/list")
    public R<Object> getRoleList(){

        return R.data(baseRoleService.list());
    }


}
